package org.bbmall.bean.sales;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 今日核心指标实体类
 * 对应数据库表：ads_today_kpi
 */
@Data
@TableName("ads_today_kpi")
public class AdsTodayKpi {

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 统计日期
     */
    @TableField("stat_date")
    private LocalDate statDate;

    /**
     * 今日销售总额
     */
    @TableField("today_sales_amount")
    private BigDecimal todaySalesAmount;

    /**
     * 今日订单总数
     */
    @TableField("today_order_count")
    private Long todayOrderCount;

    /**
     * 今日客流量
     */
    @TableField("today_customer_count")
    private Long todayCustomerCount;

    /**
     * 平均客单价
     */
    @TableField("avg_customer_spent")
    private BigDecimal avgCustomerSpent;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}